using System;
using System.Collections.Generic;
using System.Text;
using DAL;
using Models;

namespace BLL
{

    public static partial class NewsInfoManager
    {
        public static bool AddNewsInfo(NewsInfo newsInfo)
        {
            return NewsInfoService.AddNewsInfo(newsInfo);
        }

        public static bool DeleteNewsInfoByID(int iD)
        {
            return NewsInfoService.DeleteNewsInfoByID(iD);
        }

        public static bool ModifyNewsInfo(NewsInfo newsInfo)
        {
            return NewsInfoService.ModifyNewsInfo(newsInfo);
        }

        public static IList<NewsInfo> GetAllNewsInfos()
        {
            return NewsInfoService.GetAllNewsInfos();
        }

        public static int GetMaxXUEHAO()
        {
            return NewsInfoService.GetMaxXUEHAO();
        }

        public static int GetIDNewsInfosByXUEHAO(int xuehao)
        {
            return NewsInfoService.GetIDNewsInfosByXUEHAO(xuehao);
        }

        public static bool ModifyXUHAONewsInfosByID(int pid, int xuhao)
        {
            return NewsInfoService.ModifyXUHANewsInfosByID(pid, xuhao);
        }

        public static IList<NewsInfo> GetNewsInfosLast()
        {
            return NewsInfoService.GetNewsInfosLast();
        }

        public static IList<NewsInfo> GetNewsInfosByTypeID(int typeID)
        {
            return NewsInfoService.GetNewsInfosByTypeID(typeID);
        }

        public static IList<NewsInfo> GetNewsInfosByTypeID(string typeID)
        {
            return NewsInfoService.GetNewsInfosByTypeID(typeID);
        }

        public static IList<NewsInfo> GetNewsInfosByTypeIDIndex(string typeID)
        {
            return NewsInfoService.GetNewsInfosByTypeIDIndex(typeID);
        }

        public static NewsInfo GetNewsInfoByID(int iD)
        {
            return NewsInfoService.GetNewsInfoByID(iD);
        }

    }
}
